
def login_front():

 username = "13800000001"
# password = "123456"
# 打印登录成功
 print(f"登录成功，账号：{username},密码：{password}")
def login_back():
# 定义局部变量

 username = "admin"
 password = "6666"
# 打印登录成功
 print(f"登录成功，账号：{username},密码：{password}")
# 调用函数
password = "123456" # 定义全局变量
login_front()
login_back()


def add_test(num1, num2):
# 局部变量
 num1 = 100
 print(num1 + num2)
def sub_test(num1, num2):
    print(num1-num2)
add_test(10,200) # 300
sub_test(10,200) # ‐190